package top.wshape1.shiziapi.message.service;

import top.wshape1.shiziapi.common.domain.vo.MessageVo;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2024-01-24
 */

public interface WebSocketService {


    /**
     * 发送消息
     *
     * @param userId
     * @param messageVo
     */
    void sendMessage(Long userId, MessageVo messageVo);

    /**
     * 发送广播消息
     *
     * @param data
     */
    void sendBroadcastMessage(MessageVo data);
}
